

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>创建新供应商</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="list" action="list">供应商列表</g:link></span>
        </div>
        <div class="body">
            <h1>创建新供应商</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${supplierInstance}">
            <div class="errors">
                <g:renderErrors bean="${supplierInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="supplierName">供应商名称:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'supplierName','errors')}">
                                    <input type="text" id="supplierName" name="supplierName" value="${fieldValue(bean:supplierInstance,field:'supplierName')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email">Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'email','errors')}">
                                    <input type="text" id="email" name="email" value="${fieldValue(bean:supplierInstance,field:'email')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="mobile">手机:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'mobile','errors')}">
                                    <input type="text" maxlength="15" id="mobile" name="mobile" value="${fieldValue(bean:supplierInstance,field:'mobile')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="telephone">电话:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'telephone','errors')}">
                                    <input type="text" maxlength="15" id="telephone" name="telephone" value="${fieldValue(bean:supplierInstance,field:'telephone')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="address">地址:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'address','errors')}">
                                    <input type="text" id="address" name="address" value="${fieldValue(bean:supplierInstance,field:'address')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="fax">传真:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'fax','errors')}">
                                    <input type="text" id="fax" name="fax" value="${fieldValue(bean:supplierInstance,field:'fax')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="postcode">邮编:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'postcode','errors')}">
                                    <input type="text" id="postcode" name="postcode" value="${fieldValue(bean:supplierInstance,field:'postcode')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="remarks">备注:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:supplierInstance,field:'remarks','errors')}">
                                    <g:textArea name="remarks" value="${fieldValue(bean:supplierInstance,field:'remarks')}"/>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="创建" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
